package com.mccken.designpattern.strategy.strategy_03.sub_srategy;

import com.mccken.designpattern.strategy.strategy_03.IPromotionStrategy;

/**
 * 直接反现促销
 * 
 * @program: mccken-collect
 * @description:
 * @author: mccken
 * @create: 2024-01-14 20:27
 **/
public class CashbackStrategy implements IPromotionStrategy {
	@Override
	public double doPromotion(double price) {
		createCashbackTask(price);
		return price;
	}
	
	private void createCashbackTask(double price) {
		System.out.printf("消费%s元，创建返现任务", price);
		
	}
}
